package com.example.chatgpt.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "user")
public class UserInfo {
    @PrimaryKey(autoGenerate = true)
    public long id;
    @ColumnInfo(name = "user" , typeAffinity = ColumnInfo.TEXT)
    public String user;
    @ColumnInfo(name = "password" , typeAffinity = ColumnInfo.TEXT)
    public String password;

    public UserInfo(String user, String password) {
        this.user = user;
        this.password = password;
    }



    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
